

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
    <style>
    /* base */
    html,
    body,
    .container {
      width: 100%;
      height: 100%;
    }

    a,
    a:link,
    a:visited {
      text-decoration: none;
      color: inherit;
    }

    ul {
      list-style: none;
    }

    *,
    ::before,
    ::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    *:focus {
      outline: 0;
    }

    .container {
      display: flex;
      padding-top: 20px;
    }

    /* Nav */
    .container .doc-nav {
      position: fixed;
      height: 100%;
      margin: 0 30px 0 40px;
      width: 280px;
    }

    .doc-nav .nav-header {
      display: flex;
      align-items: center;
      box-sizing: border-box;
      background-color: rgb(240, 241, 242);
      height: 40px;
      padding: 16px;
      font-size: 18px;
      font-weight: 500;
      color: rgb(62, 64, 66);
      cursor: pointer;
    }

    .doc-nav .nav-content {
      height: calc(100% - 40px);
      overflow-y: auto;
      color: rgb(32, 34, 36);
    }

    .doc-nav .nav-content .nav-list,
    .doc-nav .nav-content .nav-sub-list {
      line-height: 1.5rem;
    }

    .doc-nav .nav-content .nav-label {
      display: inline-block;
      position: relative;
      padding: 2px 0 2px 20px;
      margin-bottom: 4px;
    }

    .doc-nav .nav-content .nav-sub-label {
      position: relative;
      padding: 2px 0 2px 40px;
      font-size: 14px;
    }

    .doc-nav .nav-content .nav-sub-label:hover {
      text-decoration: underline;
    }

    .doc-nav .nav-content .nav-list .nav-label.group::before {
      border-bottom: 0.25rem solid transparent;
      border-left: 0.25rem solid #6e7072;
      border-right: 0;
      border-top: 0.25rem solid transparent;
      content: '';
      display: block;
      height: 0;
      left: 0.5rem;
      position: absolute;
      top: 0.625rem;
      transition: transform 0.1s linear;
      width: 0;
    }

    .doc-nav .nav-content .nav-list .nav-label.group.active::before {
      transform: rotate(90deg);
    }

    /* doc content */
    .container .doc-content {
      position: fixed;
      height: 100%;
      width: calc(100% - 80px - 40px - 30px - 240px);
      right: 0%;
      overflow-y: auto;
    }

    .doc-title {
      border-bottom: 1px solid #dcdee0;
      font-size: 22px;
      margin: 8px 0 0;
      padding-bottom: 16px;
    }

    .doc-content h3 {
      font-size: 24px;
      font-weight: 600;
      margin: 24px 0;
    }

    .doc-content h4 {
      font-size: 22px;
      font-weight: 500;
      margin: 30px 0 8px;
    }

    .doc-content h4 span {
      color: #007d9c;
    }

    .doc-content .doc-declare {
      background-color: #fafafa;
      border-radius: 5px;
      border: 1px solid #ccc;
      font-size: 14px;
      overflow-x: auto;
      padding: 10px;
      tab-size: 4;
      line-height: 20px;
    }

    .doc-content .doc-comment {
      font-size: 16px;
      margin: 16px 0;
      line-height: 24px;
      word-break: break-word;
    }
  </style>

</head>
<body>
  <div class="container">
    <div class="doc-nav">
      <a href="#Documentation" class="nav-header">Documentation</a>
      <nav class="nav-content">
        <ul class="nav-list">
          <li>
            <a href="#includes" class="nav-label">Includes</a>
             
            <ul class="nav-sub-list">

              <li>
                <a href="#uni_msg_queue.h" class="nav-sub-label">uni_msg_queue.h</a>
              </li>
      
            </ul>
            
          </li>
          <li>
            <a href="#macros" class="nav-label">Macros</a>
             
            <ul class="nav-sub-list">

              <li>
                <a href="#_COM_MMOD_H" class="nav-sub-label">_COM_MMOD_H</a>
              </li>
      
            </ul>
            
          </li>
          <li>
            <a href="#functions" class="nav-label">Functions</a>
             
            <ul class="nav-sub-list">

              <li>
                <a href="#cmmod_release" class="nav-sub-label">cmmod_release</a>
              </li>
      

              <li>
                <a href="#cmmod_init" class="nav-sub-label">cmmod_init</a>
              </li>
      

              <li>
                <a href="#cmmod_reg_msgcb" class="nav-sub-label">cmmod_reg_msgcb</a>
              </li>
      

              <li>
                <a href="#cmmod_unreg_msgcb" class="nav-sub-label">cmmod_unreg_msgcb</a>
              </li>
      

              <li>
                <a href="#cmmod_post_msg" class="nav-sub-label">cmmod_post_msg</a>
              </li>
      

              <li>
                <a href="#cmmod_post_msg_malloc" class="nav-sub-label">cmmod_post_msg_malloc</a>
              </li>
      

              <li>
                <a href="#cmmod_post_instancy_msg" class="nav-sub-label">cmmod_post_instancy_msg</a>
              </li>
      

              <li>
                <a href="#cmmod_post_instancy_msg_malloc" class="nav-sub-label">cmmod_post_instancy_msg_malloc</a>
              </li>
      

              <li>
                <a href="#cmmod_cr_tm_msg_hand" class="nav-sub-label">cmmod_cr_tm_msg_hand</a>
              </li>
      

              <li>
                <a href="#cmmod_start_tm_msg" class="nav-sub-label">cmmod_start_tm_msg</a>
              </li>
      

              <li>
                <a href="#cmmod_stop_tm_msg" class="nav-sub-label">cmmod_stop_tm_msg</a>
              </li>
      

              <li>
                <a href="#cmmod_release_tm_msg" class="nav-sub-label">cmmod_release_tm_msg</a>
              </li>
      

              <li>
                <a href="#cmmod_get_msg_node_num" class="nav-sub-label">cmmod_get_msg_node_num</a>
              </li>
      
            </ul>
            
          </li>
          <li>
            <a href="#vars" class="nav-label">Vars</a>
            
            <ul class="nav-sub-list">
            
            </ul>
            
          </li>
          <li>
            <a href="#consts" class="nav-label">Consts</a>
            
            <ul class="nav-sub-list">
            
            </ul>
            
          </li>
          <li>
            <a href="#types" class="nav-label">Types</a>
            
            <ul class="nav-sub-list">
            
            </ul>
            
          </li>
          <li>
            <a href="#typedefs" class="nav-label">Typedefs</a>
            
            <ul class="nav-sub-list">
            
            </ul>
            
          </li>
        </ul>
      </nav>
    </div>
    <div class="doc-content">
      <h2 id="Documentation" class="doc-title">Documentation</h2>
      <h3 id="includes">Includes</h3>
      

      <h4 id="uni_msg_queue.h"><span>uni_msg_queue.h</span></h4>
      <pre class="doc-declare"><code>#include "uni_msg_queue.h"
</code></pre>
      <pre class="doc-comment">#include "uni_msg_queue.h"
</pre>
      <h3 id="macros">Macros</h3>
      

      <h4 id="_COM_MMOD_H">Marco <span>_COM_MMOD_H</span></h4>
      <pre class="doc-declare"><code>#define _COM_MMOD_H
</code></pre>
      <pre class="doc-comment"></pre>
      <h3 id="functions">Functions</h3>
      

      <h4 id="cmmod_release">Func <span>cmmod_release</span></h4>
      <pre class="doc-declare"><code>OPERATE_RET cmmod_release(VOID);</code></pre>
      <pre class="doc-comment">/**
 * @brief Release module handle.
 *
 * @param VOID
 *
 * @note This API is used for releasing module handle.
 *
 * @return OPRT_OK on success. Others on error, please refer to tuya_error_code.h
 */</pre>

      <h4 id="cmmod_init">Func <span>cmmod_init</span></h4>
      <pre class="doc-declare"><code>OPERATE_RET cmmod_init(VOID);</code></pre>
      <pre class="doc-comment">/**
 * @brief Init module handle.
 *
 * @param VOID
 *
 * @note This API is used for initializing module handle.
 *
 * @return OPRT_OK on success. Others on error, please refer to tuya_error_code.h
 */</pre>

      <h4 id="cmmod_reg_msgcb">Func <span>cmmod_reg_msgcb</span></h4>
      <pre class="doc-declare"><code>OPERATE_RET cmmod_reg_msgcb(IN CONST MSG_CALLBACK msg_cb, OUT MSG_ID *msg_id);</code></pre>
      <pre class="doc-comment">/**
 * @brief Regist callback function for message.
 *
 * @param[in] msg_cb: message callback function
 * @param[out] msg_id: message id
 *
 * @note This API is used for registing message's callback function.
 *
 * @return OPRT_OK on success. Others on error, please refer to tuya_error_code.h
 */</pre>

      <h4 id="cmmod_unreg_msgcb">Func <span>cmmod_unreg_msgcb</span></h4>
      <pre class="doc-declare"><code>OPERATE_RET cmmod_unreg_msgcb(IN CONST MSG_ID msgID);</code></pre>
      <pre class="doc-comment">/**
 * @brief Unregist callback function for message.
 *
 * @param[in] msgID: message id
 *
 * @note This API is used for unRegisting message's callback function.
 *
 * @return OPRT_OK on success. Others on error, please refer to tuya_error_code.h
 */</pre>

      <h4 id="cmmod_post_msg">Func <span>cmmod_post_msg</span></h4>
      <pre class="doc-declare"><code>OPERATE_RET cmmod_post_msg(IN CONST MSG_ID msgID,IN CONST P_MSG_DATA pMsgData, IN CONST MSG_DATA_LEN msgDataLen);</code></pre>
      <pre class="doc-comment">/**
 * @brief Post a message.
 *
 * @param[in] msgID: message id
 * @param[in] pMsgData: message data
 * @param[in] msgDataLen: message data len
 *
 * @note This API is used for posting a message
 *
 * @return OPRT_OK on success. Others on error, please refer to tuya_error_code.h
 */</pre>

      <h4 id="cmmod_post_msg_malloc">Func <span>cmmod_post_msg_malloc</span></h4>
      <pre class="doc-declare"><code>OPERATE_RET cmmod_post_msg_malloc(IN CONST MSG_ID msgID,IN CONST P_MSG_DATA pMsgData, IN CONST MSG_DATA_LEN msgDataLen);</code></pre>
      <pre class="doc-comment">/**
 * @brief Post a message with memory alloc
 *
 * @param[in] msgID: message id
 * @param[in] pMsgData: message data
 * @param[in] msgDataLen: message data len
 *
 * @note This API is used for posting a message with memory alloc, the param of message data can be local variable
 *
 * @return OPRT_OK on success. Others on error, please refer to tuya_error_code.h
 */</pre>

      <h4 id="cmmod_post_instancy_msg">Func <span>cmmod_post_instancy_msg</span></h4>
      <pre class="doc-declare"><code>OPERATE_RET cmmod_post_instancy_msg(IN CONST MSG_ID msgID,IN CONST P_MSG_DATA pMsgData, IN CONST MSG_DATA_LEN msgDataLen);</code></pre>
      <pre class="doc-comment">/**
 * @brief Post a message instantly
 *
 * @param[in] msgID: message id
 * @param[in] pMsgData: message data
 * @param[in] msgDataLen: message data len
 *
 * @note This API is used for posting a message instantly
 *
 * @return OPRT_OK on success. Others on error, please refer to tuya_error_code.h
 */</pre>

      <h4 id="cmmod_post_instancy_msg_malloc">Func <span>cmmod_post_instancy_msg_malloc</span></h4>
      <pre class="doc-declare"><code>OPERATE_RET cmmod_post_instancy_msg_malloc(IN CONST MSG_ID msgID,IN CONST P_MSG_DATA pMsgData, IN CONST MSG_DATA_LEN msgDataLen);</code></pre>
      <pre class="doc-comment">/**
 * @brief Post a instant message with memory alloc
 *
 * @param[in] msgID: message id
 * @param[in] pMsgData: message data
 * @param[in] msgDataLen: message data len
 *
 * @note This API is used for posting a instant message with memory alloc, the param of message data can be local variable
 *
 * @return OPRT_OK on success. Others on error, please refer to tuya_error_code.h
 */</pre>

      <h4 id="cmmod_cr_tm_msg_hand">Func <span>cmmod_cr_tm_msg_hand</span></h4>
      <pre class="doc-declare"><code>OPERATE_RET cmmod_cr_tm_msg_hand(IN CONST TM_MSG_CB cb,IN CONST VOID *data,OUT TM_MSG_S **tm_msg);</code></pre>
      <pre class="doc-comment">/**
 * @brief Create timer message handle.
 *
 * @param[in] cb: callback function
 * @param[in] data: message data
 * @param[out] tm_msg: timer message info
 *
 * @note This API is used for creating a timer message handle
 *
 * @return OPRT_OK on success. Others on error, please refer to tuya_error_code.h
 */</pre>

      <h4 id="cmmod_start_tm_msg">Func <span>cmmod_start_tm_msg</span></h4>
      <pre class="doc-declare"><code>OPERATE_RET cmmod_start_tm_msg(IN CONST TM_MSG_S *tm_msg,IN CONST TIME_MS timeCycle, IN CONST TIMER_TYPE timer_type);</code></pre>
      <pre class="doc-comment">/**
 * @brief Start the timer message.
 *
 * @param[in] tm_msg: timer message info
 * @param[in] timeCycle: cycle time of the timer
 * @param[in] timer_type: timer type, cycle or once
 *
 * @note This API is used for starting the timer message
 *
 * @return OPRT_OK on success. Others on error, please refer to tuya_error_code.h
 */</pre>

      <h4 id="cmmod_stop_tm_msg">Func <span>cmmod_stop_tm_msg</span></h4>
      <pre class="doc-declare"><code>OPERATE_RET cmmod_stop_tm_msg(IN CONST TM_MSG_S *tm_msg);</code></pre>
      <pre class="doc-comment">/**
 * @brief Stop the timer message.
 *
 * @param[in] tm_msg: timer message info
 *
 * @note This API is used for stopping the timer message
 *
 * @return OPRT_OK on success. Others on error, please refer to tuya_error_code.h
 */</pre>

      <h4 id="cmmod_release_tm_msg">Func <span>cmmod_release_tm_msg</span></h4>
      <pre class="doc-declare"><code>OPERATE_RET cmmod_release_tm_msg(IN CONST TM_MSG_S *tm_msg);</code></pre>
      <pre class="doc-comment">/**
 * @brief Release the timer message.
 *
 * @param[in] tm_msg: timer message info
 *
 * @note This API is used for releasing the timer message
 *
 * @return OPRT_OK on success. Others on error, please refer to tuya_error_code.h
 */</pre>

      <h4 id="cmmod_get_msg_node_num">Func <span>cmmod_get_msg_node_num</span></h4>
      <pre class="doc-declare"><code>INT_T cmmod_get_msg_node_num(VOID);</code></pre>
      <pre class="doc-comment">/**
 * @brief Get message node count.
 *
 * @param VOID
 *
 * @note This API is used for getting the count of message node.
 *
 * @return the count of message node.
 */</pre>
      <h3 id="vars">Vars</h3>
      
      <h3 id="consts">Consts</h3>
      
      <h3 id="types">Types</h3>
      
      <h3 id="typedefs">Typedefs</h3>
      
    </div>
  </body>
</html>
            